package com.xl.xkittt

import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.xl.xkit.consts.DataInfo
import com.xl.xkit.consts.DataInfoItem
import org.json.JSONArray
import org.junit.Test

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * @see [Testing documentation](http://d.android.com/tools/testing)
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        var a = "[{\"time\":1624167855500,\"data\":0}]"

        var b = "{\"time\":1624167855500,\"data\":0}"

        var c = Gson().fromJson(a, DataInfo::class.java)

//        c.add(Gson().fromJson(b, DataInfoItem::class.java))

        println(c)


    }


}